import request from '@/utils/request'

export function getQiNiuToken() {
  return request({
    url: '/photo/uptoken',
    method: 'get'
  })
}

export function getPhotos(params) {
  return request({
    url: '/photo',
    method: 'get',
    params: params
  })
}

export function deletePhoto(params) {
  return request({
    url: '/photo',
    method: 'delete',
    params: params
  })
}
